<!-- 封装svg全局组件 -->
<template>
  <div>
    <svg :style="`width: ${width}; height: ${height}`">
      <use :="$atrrs"></use>
    </svg>
  </div>
</template>

<script lang="ts" setup>
import { useAttrs } from 'vue'
const $atrrs = useAttrs()
console.log($atrrs)
defineProps({
  width: {
    type: String,
    default: '50px',
  },
  height: {
    type: String,
    default: '50px',
  },
})
</script>
<style scoped lang="scss"></style>
